﻿using System;
using System.Text;

class ReverseString
{
    static void Main()
    {
        Console.WriteLine("Enter a string to reverse:");
        string enteredString = Console.ReadLine();
        StringBuilder stringBuild = new StringBuilder();
        for (int index = enteredString.Length - 1; index >= 0; index--)
        {
            stringBuild.Append(enteredString[index]);
        }
        Console.WriteLine();
        Console.WriteLine("The reversed string is: {0}", stringBuild);
        Console.WriteLine();
    }
}

